//1.
public class Student {//创建一个学生类
    //属性/成员变量
    public String name;
    public String gender;
    public int age;
    public double score;

    //成员方法
    public void doClass(){
        System.out.println(name + "正在上课");
    }
    public void doHomework(){
        System.out.println(name + "正在做作业");
    }

    public void show(){
        System.out.println("姓名：" + name + " 性别：" + gender + " 年龄：" + age + " 分数：" + score);
    }
}
